package com.tedu.protocol.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
/**
 * @date 2023/4/19
 * @author liuhuan
 */
@Data
public class ContentDTO {
    private Integer id;
    @NotBlank(message = "类别不允许为空")
    @ApiModelProperty("类别")
    private Integer categoryId;
    @ApiModelProperty("编辑器类型")
    private String editor;
    @NotBlank(message = "标题不允许为空")
    @ApiModelProperty("标题")
    private String title;
     @NotBlank(message = "摘要不允许为空")
     @ApiModelProperty("摘要")
    private String brief;
    @NotBlank(message = "关键字不允许为空")
    @ApiModelProperty("关键字")
    private String keywords;
    @ApiModelProperty("排序")
    private Integer sort;
    @NotBlank(message = "封面不允许为空")
    @ApiModelProperty("封面")
    private String coverUrl;
    @ApiModelProperty("媒体类型")
    private Integer mediaType;

    @ApiModelProperty("媒体路径")
    private String mediaUrl;
    @NotBlank(message = "顶数量不允许为空")
    @ApiModelProperty("顶数量")
    private Integer up;
    @ApiModelProperty("踩数量")
    private Integer down;
    @ApiModelProperty("审核状态")
    private Boolean auditStatus;
    @ApiModelProperty("审核原因")
    private String auditRemark;
    @ApiModelProperty("显示状态")
    private Byte status;

}
